import Nav from "./nav.js"; // 导航
import Info from "./info/info.js"; // 资讯
import Cinema from "./cinemaJS/cinema.js"; // 电影院
import Hots from "./hots/hots.js"; // 热播
import Hotsup from "./hotsup/hots.js"; // 热映
import Movie from "./moviesJs/movies.js"; //电影
import MateFilm from "./mateFilm/mateFilm.js"


// import User from "./user.js";
// import Operation from "./operation.js";
// import Login from "./login.js";

location.hash = location.hash || "#/";

let routes = {
    "/": function () {
        new Nav();
    },
    "/movie": () => {
        new Movie();
    },
    "/hots": function () {
        new Hots();
    },
    "/hotsup": function () {
        new Hotsup();
    },
    "/cinema": function () {
        new Cinema();
    },
    "/info": function () {
        new Info();
    },
    "/mate":function(){
        new MateFilm();
    }
    
}

let router = Router(routes).configure({
recurse: 'forward'
});
router.init();

